<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>18-while循环语法</title>
	</head>
	<body>
		<script type="text/javascript">
			/*
			 while (条件表达式) {
			     // 循环体代码 
			 }
			 */
			//循环100次 HelloWord
			var num = 1;
			while(num<=100){
				console.log("HelloWord");
				//num=1时，永远满足条件num<=100(true)，所以导致程序陷入死循环
				num++;
			}	
		</script>
	</body>
</html>
